import { createSlice } from "@reduxjs/toolkit";

export const configSlice = createSlice({
  name: "configSLice",
  initialState: {
    // 布局
    currentLayoutIndex: 0,
  },
  reducers: {
    changeLayoutIndex(state, action) {
      state.currentLayoutIndex = action.payload;
    },
  },
});

export const { changeLayoutIndex } = configSlice.actions
